
angular.module('starter')

  .controller('NotificationCtrl', function ($scope,$http,$state) {

    getAllClubsUrl = IP_ADDRESS+"/st-core/club!getAll.action?callback=JSON_CALLBACK";

    $http.jsonp(getAllClubsUrl).success(
      function (data) {

        $scope.Clubs = data;
        console.log(data);

      }
    ).error(function () {

      console.log("获得所有社团失败，url", getAllClubsUrl);
    });
      $scope.doreload=function(){
          var handle=setTimeout(function(){
              debugger
              if(document.getElementById("organization")){

                  clearTimeout(handle);
              }


          },900)

      }

  });
